<html>
<head>
<title>Tutor Properties</title>	
<link type="text/css" rel="stylesheet" href="/stylesheets/main.css" />
<link type="text/css" rel="stylesheet" href="/stylesheets/question_search.css" />
<script language="JavaScript">
function TutorCancel() {
    document.location="tutors_browse";	
}

function TutorSubmit() {
 
    elGranted = document.getElementById("IsGranted");
    if (elGranted.checked) {
        elGranted.value = "True";
    }
    elGrantPrivilige = document.getElementById("GrantPrivilige");
    if (elGrantPrivilige.checked) {
        elGrantPrivilige.value = "True";
    } 

    document.frmEditTutor.submit();
}
</script>
</head>
<body>
<h2>Tutor Properties</h2>
<hr>

<form action="/tutor_submit" method="post" id="frmEditTutor" name="frmEditTutor"></br>

<div><input type="hidden" name="id" value="{{ id }}"></div>

<table border=0 width="80%">
<tr><td class="td18pct">ID</td><td>{{ id }}</td></tr>
<tr><td class="td18pct">Tutor</td><td><input type="text" class="myEmailText" id="googleUser" name="googleUser" value="{{ Tutor }}"></td></tr>
<tr><td>Is Granted	  </td><td><input type="checkbox" id="IsGranted" name="IsGranted" value="{{ isGranted }}"></td></tr>
<tr><td>Grant Date	  </td><td><input type="text" class="myEmailText" id="GrantDate" name="GrantDate" value="{{ grantDate }}"></td></tr>
<tr><td>Granted by	  </td><td><input type="text" class="myEmailText" id="GrantedBy" name="GrantedBy" value="{{ grantedBy }}"></td></tr>
<tr><td>Granting Privilige</td><td><input type="checkbox" id="GrantPrivilige" name="GrantPrivilige" value="{{ grantPrivilige }}"></td></tr>
</table>

<hr>
<input type="button" value="Cancel" onClick="TutorCancel();"> &nbsp; <input type="button" value="Save" onClick="TutorSubmit();">
</form>
<hr>
<br><br><a href="/">Start page</a>		
</body>
</html>

